home *** CD-ROM | disk | FTP | other *** search
- 95
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- CreatePMIcon
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baCreatePMIcon creates a Program Manager or Start Menu icon.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baCreatePMIcon( Command, Title, Icon, IconNumber )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, String, String, Integer.
- --- RECORDSEPARATOR ---
- Command is the command line to use in the icon.
- --- RECORDSEPARATOR ---
- Title is the name that appears under the icon.
- --- RECORDSEPARATOR ---
- Icon is the name of the icon to use.
- --- RECORDSEPARATOR ---
- IconNumber is the number of the icon to use.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- Returns 1 if successful, else 0.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set OK = baCreatePMIcon( "d:\mterms.exe","Multimedia Terms","d:\mterms.ico", 0 )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- OK := baCreatePMIcon( "d:\\mterms.exe", "Multimedia Terms", "d:\\mterms.ico", 0 )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- The icon will be added to the active Program Manager group. To ensure that the
- --- RECORDSEPARATOR ---
- group you want to add the icon to is active, you should always call
- --- RECORDSEPARATOR ---
- baCreatePMGroup before you use this function (even if the group already exists).
- --- RECORDSEPARATOR ---
- This will make the group the active one. If you are adding multiple icons, you only
- --- RECORDSEPARATOR ---
- need to make one call to baCreatePMGroup before you start adding.
- --- RECORDSEPARATOR ---
- If you create a group, and want to add icons to it, you should allow enough time for
- --- RECORDSEPARATOR ---
- Windows to create the group before you try to add an icon to it. A wait of one
- --- RECORDSEPARATOR ---
- second should be enough, but slow machines running Win95 may take longer.
- --- RECORDSEPARATOR ---
- The Icon parameter can be either an .ico, .exe or .dll file. If the file is a .ico, then
- --- RECORDSEPARATOR ---
- the IconNumber parameter is ignored. If it is a .exe or .dll file, then the IconNumber
- --- RECORDSEPARATOR ---
- is the number of the icon in that file to use. If the Icon is an empty string (""), then
- --- RECORDSEPARATOR ---
- the first icon in the Command .exe file will be used.
- --- RECORDSEPARATOR ---
- For example:
- --- RECORDSEPARATOR ---
- baCreatePMIcon( "d:\mterms.exe", "Multimedia Terms" , "" , 0 )
- --- RECORDSEPARATOR ---
- will use the default icon for d:\mterms.exe.
- --- RECORDSEPARATOR ---
- baCreatePMIcon( "d:\mterms.exe", "Multimedia Terms" , "d:\mterms.ico" , 0 )
- --- RECORDSEPARATOR ---
- will use the d:\mterms.ico icon.
- --- RECORDSEPARATOR ---
- baCreatePMIcon( "d:\mterms.exe", "Multimedia Terms", "c:\win\moreicons.dll", 5 )
- --- RECORDSEPARATOR ---
- will use the fifth icon in moreicons.dll.
- --- RECORDSEPARATOR ---
- You need to ensure that the filenames you pass into the function do not contain a
- --- RECORDSEPARATOR ---
- space ΓÇô use the baShortFilename function to return the short version of a filename.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- See also:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baCreatePMGroup
- --- RECORDSEPARATOR ---
- baDeletePMGroup
- --- RECORDSEPARATOR ---
- baPMGroupList
- --- RECORDSEPARATOR ---
- baPMSubGroupList
- --- RECORDSEPARATOR ---
- baDeletePMIcon
- --- RECORDSEPARATOR ---
- baPMIconList